<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/10/7
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
     <%
       //判断是否属于经过了登陆进来
       String uname =(String)session.getAttribute("username");
       if (uname==null) {//session 变量不存在
         response.sendRedirect("login.jsp");
       }else{
         out.println(uname+"欢迎您使用本系统");
       }

     %>
     <h4>选择功能菜单</h4>
     <p>  <a href="user.jsp">1.用户信息管理</a>   </p>
     <p>  <a href="product.jsp">2.商品信息管理</a>   </p>
     <p>  <a href="cart.jsp">3.订单信息管理</a>   </p>

     <p>  <a href="home.jsp" target="_blank">4.商城首页</a>  </p>
  </body>
</html>
